home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Developer Connection Student Program
/
ADC Tools Sampler CD Disk 3 1999.iso
/
Documentation
/
Books
/
Learn Java on the Macintosh
/
Learn Java Projects
/
06.02 - postfix
/
Postfix.java
< prev
next >
Wrap
Text File
|
1996-04-22
|
505b
|
23 lines
/* -------------------------------------------------------------
This applet illustrates prefix and postfix notation.
Java's classes: Applet (applet)
System (lang)
Custom classes: Postfix
------------------------------------------------------------- */
public class Postfix extends java.applet.Applet {
static {
int myInt;
myInt = 5;
System.out.println("myInt ---> " + myInt++);
System.out.println("myInt ---> " + ++myInt);
}
}